package com.share.device.emqx.handler.impl;

import com.alibaba.fastjson.JSONObject;
import com.share.device.emqx.annotation.ItCamEmqx;
import com.share.device.emqx.constant.EmqxConstants;
import com.share.device.emqx.handler.MassageHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author : Cammy.Wu
 * Description : 充电宝属性上报处理类，上报电量等信息
 */

@Slf4j
@Component
@ItCamEmqx(topic = EmqxConstants.TOPIC_PROPERTY_POST)
public class PropertyPostHandler implements MassageHandler {

    @Override
    public void handleMessage(JSONObject message) {
        log.info("handleMessage: {}", message.toJSONString());
    }
}
